The New Lynn mall terrorist forged medical records and statements from his family to bolster his claim for refugee status, which was revoked later when the bogus documents were discovered by police investigating his support for Islamic State.
"New Zealand Government don't know about my visa," the ex-colleague said the would-be terrorist told him.
"He was trying to say he was ripping off the New Zealand system. I think he was just bragging."
The man, who asked to remain anonymous, said he had a "sinking feeling" when he saw the Herald's story last month reporting how the Crown had unsuccessfully sought to prosecute Ahamed Aathil Mohamed Samsudeen under the Terrorism Suppression Act 2002.
"When you guys ran that photo the other week, of him blurred out with the air-rifle, I thought: 'Oh my God.'"
Samsudeen was born in Sri Lanka and came to New Zealand in October 2011 on a student visa to study a diploma in electronics and telecommunications, which he withdrew from just a month later.
His original claim for asylum was rejected by Immigration New Zealand (INZ), but Samsudeen was successful in appealing the decision to the Immigration Protection Tribunal (IPT) in December 2013.
Among his claims, Samsudeen said he and his father were attacked, kidnapped and tortured because of their political background in Sri Lanka and while the IPT considered aspects of his account were "superficially unsatisfactory", the panel thought he was credible.
This was largely because much of his account related to events which happened to his father and a psychologist's report which said Samsudeen presented as a "highly distressed and damaged young man" suffering from post-traumatic stress disorder and depression.
Then Samsudeen came to attention of police counter-terrorism officers and intelligence agencies in 2016 following a social media post sympathetic to Islamic State attacks in Europe.
He was arrested at Auckland International Airport in May 2017 having bought a ticket for a flight to Singapore. Police believe he was attempting to join Isis forces fighting in Syria.
When they searched his apartment, detectives found a large hunting knife hidden under his mattress and seized his computer, which contained photographs and videos of extreme violence supporting the extreme Isis ideology.
The forensic search of his computer hard drive also found medical records which contained details different to those Samsudeen submitted in support of his refugee claim, according to sources.
This prompted the police to consider whether they could verify the bona fides of Samsudeen's story. Traditionally, the police have been barred from doing so for fear of retribution on the family of those seeking asylum.
In this case, the police sought a legal opinion from Crown Law which advised they could check Samsudeen's story with members of his family - who had also left Sri Lanka - but not any government or official sources.
Detectives interviewed members of his family who confirmed they had been targeted during Sri Lanka's civil war, but their statements did not corroborate some of Samsudeen's more serious torture and kidnap claims.
Armed with this new information from police, and bearing in mind Samsudeen had been radicalised to the point of talking about a lone wolf style attack, immigration officials revoked his refugee status in February 2019 and served him with a deportation notice.
"During the review of the individual's refugee status, it was established that the documentation he had submitted in his refugee claim was fraudulent. This was on the basis that evidence found on his laptop by police indicated the individual had manufactured written statements from family members in support of his claim and embellished a medical report to align with his claims," a spokesperson for INZ confirmed in a written statement to Herald questions.
Again, he appealed to the IPT. The hearing was scheduled to take place last month but was adjourned because of the Covid-19 lockdown.
By this time, Samsudeen was getting closer to being released from prison and agencies were concerned about the risk he posed to the community.
"Immigration New Zealand explored whether the Immigration Act might allow them to detain the individual while his deportation appeal was heard," Prime Minister Jacinda Ardern said.
"It was incredibly disappointing and frustrating when legal advice came back to say this wasn't an option."
Samsudeen's former colleague, who knew him in the first years after the future terrorist arrived in New Zealand, described him as a "loner" that didn't speak about his family.
"He hardly talked to anyone and didn't respond to much direction," he said. "He was just a difficult person to manage."
He described noticing "odd" Facebook posts about "living in a land of non-believers" and said Samsudeen showed him a video at work of a chicken being slaughtered.
While moves to deport Samsudeen were taking place, he was facing new criminal charges.
He had already been sentenced to a year of supervision in September 2018 after pleading guilty to representative charges of knowing distribution of restricted material under the Films, Videos, and Publications Classifications Act, two charges of dishonestly using a document and one charge of refusing to assist police.
Samsudeen's fraud charges were for offences in April 2017 when he twice provided false employment details when applying for credit cards to gain access to more than $10,000 in credit, court documents show.
He was arrested again just a day after being granted bail pending his initial supervision sentence for buying an identical hunting knife from an East Tamaki shop.
After two charges, including for possession of a metal throwing star, were dismissed last year, Samsudeen went to trial in May at the High Court at Auckland.
The jury found him guilty of two counts of possessing objectionable propaganda-style Isis material, a pair of nasheeds (hymns and chants) with images.
One referenced martyrdom, featured a black-clad fighter with a machine gun, Isis flag, and lyrics advocating for jihad and decapitation. The other, titled "We came to fill horror everywhere", depicts men dressed in black with assault rifles, the Isis flag and a city on fire.
He was acquitted of a third charge of possessing an objectionable and violently graphic Isis video, which depicted a prisoner being decapitated.
Samsudeen was also acquitted of possession of an offensive weapon in a public place, the knife he bought at the East Tamaki shop. He was found guilty of failing to comply with a police search for refusing to provide police with his pin code for his devices.
In July, he was sentenced to 12 months' supervision by Justice Sally Fitzgerald, who declined to impose the Crown-sought condition of GPS monitoring. The prosecutor had, however, conceded GPS monitoring would not prevent the type of offending for which he had been found guilty.
When Samsudeen carried out his attack he was on bail, granted a week after his July sentencing by a District Court judge, for assaulting two Corrections' staff while in custody. The judge granted bail, largely on the same conditions as the supervision sentence, after considering a joint memorandum from Crown and defence counsel.
Crown sources said bail was not opposed because the amount of time Samsudeen had already spent in prison, if bail was denied, would be longer than the maximum sentence even if he was convicted of the assaults. Samsudeen's bail was then varied on July 16 at the request of counsel.
The bail variation judgment noted Samsudeen had an "antiauthoritarian stance towards police" and believed he had been set him up to fail if police could directly monitor his internet activities rather than a probation officer.
Samsudeen was due to appear in court again in late October, when his bail and conditions were to reviewed by a judge.
He was shot dead shortly after his terror began by members of the police's elite Special Tactics Group, which had been part of a constant and covert surveillance operation since Samsudeen's release from custody.
Immigration NZ's efforts to deport Samsudeen
In response to Herald questions, INZ released Samsudeen's immigration history and the processes that were followed.
In May 2021, in the lead up to his release from prison, INZ said it worked with other government agencies to explore options to detain Samsudeen under the Immigration Act pending the making of a deportation order - including the hearing of any appeal.
"Initial Crown Law advice indicated INZ could pursue the arrest and detention of the individual on the basis that he was liable for deportation and awaiting the service of a deportation order," INZ said.
The agency could then apply to a District Court judge for a warrant of commitment for his continued detention pending deportation.
In May 2021, INZ also began work on preparing a case for the Minister of Immigration to consider whether he should certify the individual as a threat or risk to security under section 163 of the Immigration Act. This certification may have assisted in any warrant of commitment application, INZ said.
"A large proportion of the evidence to be used for this case was intended to come from the evidence provided in his most recent criminal trial. At that trial, he was found not guilty on a number of charges," INZ's statement read.
"This meant that in order to fulfil INZ's fairness and natural justice obligations, the evidence used in respect of those charges would need to be put to him for comment if it was to be used as evidence for certification due to the fact that he was found not guilty."
The verdicts in the criminal trial also added complexity to the appeal proceedings.
It meant evidence from the criminal investigation would need to be put before the IPT in order to establish an aspect of INZ's case in that appeal – specifically that Samsudeen was "guilty of acts contrary to the purposes and principles of the United Nations".
Before arresting and detaining a person, INZ said it needed to be satisfied Samsudeen would be able to be deported.
"In order to do so, a reassessment of the individual's case was conducted as to whether he was likely to be a refugee or protected person.
"In early July 2021, following consideration of the circumstances as they stood at the time, including updated research information about his home country, the outcome of the recent High Court criminal trial, the media reporting on the individual's current and past criminal trials and sentencing, and legal advice, the reassessment concluded that the individual would highly likely qualify as a protected person under the Immigration Act."
INZ said because of this it was unlikely Samsudeen could be deported and a deportation order could not be made.
Subsequently, Crown Law provided advice that INZ could not exercise its powers of arrest and detention pending the making of a deportation order because Samsudeen could not be detained for the purpose of deportation when deportation was not a realistic prospect.
"As such, INZ could not, in good faith, seek a warrant of commitment if it did not believe the purpose for detention under the Immigration Act could be made out," INZ said in its statement.
Given the receipt of legal advice, and the finding that indicated Samsudeen would highly likely be recognised as a protected person, and therefore not deportable, it was also decided not to pursue this additional ground of deportation liability under section 163 of the Immigration Act.
INZ said, though, that this was still under consideration pending the outcome of the IPT appeal.
At the time of the attack, INZ had found the following of Samsudeen: